using SqlSugar;
using System.Collections.Generic;
using System.ComponentModel;

namespace CoreShop.Model
{
    /// <summary>
    /// 商品基础表(把后台的corecmsfood和corecmsfoodPartial合在一起)corecmsfoodRequest
    /// </summary>
    public partial class corecmsfoodPost
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public corecmsfoodPost()
        {
        }

        /// <summary>
        /// 序列
        /// </summary>
        public System.Int64 id { get; set; }


        /// <summary>
        /// 品牌id
        /// </summary>
        public System.Int32 corpId { get; set; }


        /// <summary>
        /// 门店id
        /// </summary>
        public System.Int64 storeId { get; set; }


        /// <summary>
        /// 商品分类id
        /// </summary>
        public System.Int64 foodTypeId { get; set; } = 0;


        /// <summary>
        /// 商品类型
        /// </summary>
        public System.Int32 type { get; set; } = 1;


        /// <summary>
        /// 商品编码
        /// </summary>
        public System.String number { get; set; } = "";


        /// <summary>
        /// 商品名称
        /// </summary>
        public System.String name { get; set; } = "";


        /// <summary>
        /// 商品别名
        /// </summary>
        public System.String byName { get; set; } = "";


        /// <summary>
        /// 主持业务类型可多选（1.食堂，2.外卖，3.自提）
        /// </summary>
        public System.String businessType { get; set; } = "";


        /// <summary>
        /// 商品状态
        /// </summary>
        public System.Int32 sellStatus { get; set; } = 0;

        /// <summary>
        /// 线上状态
        /// </summary>
        public System.Int32 mallStatus { get; set; } = 0;

        /// <summary>
        /// 是否多规格
        /// </summary>
        public System.Boolean specFlag { get; set; }


        /// <summary>
        /// 默认规格Id
        /// </summary>
        public long foodSpecId { get; set; } = 0;

        /// <summary>
        /// 是否删除
        /// </summary>
        public System.Boolean isDelete { get; set; }

        /// <summary>
        /// 组织机构Id
        /// </summary>
        public System.Int32? organizationId { get; set; } = 0;

        /// <summary>
        /// 修改时间
        /// </summary>
        public System.Int64 modifyTime { get; set; } = 0;

        /// <summary>
        /// 商品状态
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string statusText { get; set; }


        /// <summary>
        /// 是否可修改
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool isModify { get; set; } = true;


        /// <summary>
        /// 商品分类
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string foodCategoryName { get; set; }

        /// <summary>
        /// 商品类型
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string foodTypeName { get; set; } = "无";

        /// <summary>
        /// 业务类型
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public object businessObject { get; set; }

        /// <summary>
        /// 规格名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string foodSpecName { get; set; }

        /// <summary>
        /// 商品详情
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public corecmsfooddetailPost detail { get; set; }


        /// <summary>
        /// 图片
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string image { get; set; } = "";


        /// <summary>
        /// 商品规格
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<corecmsfoodspecPost> speclist { get; set; }

        /// <summary>
        /// 商品做法
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<corecmsfooddetailtask> tasklist { get; set; }

        /// <summary>
        /// 商品加料
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<corecmsfooddetailfeed> feedlist { get; set; }

        /// <summary>
        /// 商品套餐
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<corecmsfoodpack> packlist { get; set; }

        /// <summary>
        /// 出品部门名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string departName { get; set; }

        /// <summary>
        /// 商品分类id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public long goodsCategoryId { get; set; } = 0;

        /// <summary>
        /// 提交的客户端类型(
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int clientType { get; set; } = 0;
    }
}
